// Initialize jQuery Visualise
$(function(){
	$('#stats').visualize({type: 'line', height: '300px', width: '600px'});
});



// Notification Animations
$(function () {
$('.notification').hide().append('<span class="close" title="Dismiss"></span>').fadeIn('slow');
$('.notification .close').hover(
function() { $(this).addClass('hover'); },
function() { $(this).removeClass('hover'); }
);
$('.notification .close').click(function() {
$(this).parent().fadeOut('slow', function() { $(this).remove(); });
});

});



// jQuery UI - Live Search
$(function() {
		var availableTags = ["dashboard", "pages", "manage pages", "edit pages", "delete pages", "users", "manage users", "edit users", "delete users", "settings", "system settings", "server settings", "documentation", "help", "community forums", "contact"];
		$("#livesearch").autocomplete({
			source: availableTags
		});
	});



// jQuery UI - Dialog Box
$(function() {
	$('#dialog').dialog({
		autoOpen: false,
		modal: true,
		width: 500
	});
	$('#opener').click(function() {
		$('#dialog').dialog('open');
		return false;
	});

});


